﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Text;

namespace MyExcelAddIn2003.Weight
{
    public partial class RealMeterFrm : Form
    {
        public static RealMeterFrm _instance;
        public static RealMeterFrm Instance()
        {
            if (_instance == null)
                _instance = new RealMeterFrm();
            return _instance;
        }
        protected override void OnClosing(CancelEventArgs e)
        {
            _instance = null;
            base.OnClosing(e);
        }
        public RealMeterFrm()
        {
            InitializeComponent();
            SetLEDfont();
        }
        public void SetLEDfont()
        {
             label_Real.Font = new Font("TP LCD", 30);
        }

        private void RealMeterFrm_Deactivate(object sender, EventArgs e)
        {
            this.FormBorderStyle = FormBorderStyle.None;
        }

        private void RealMeterFrm_Activated(object sender, EventArgs e)
        {
            this.FormBorderStyle = FormBorderStyle.Sizable;
        }
    }
}
